home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
dev
/
gui
/
gtlayout.lha
/
Include
/
gtlayout.h
< prev
Wrap
C/C++ Source or Header
|
1998-09-09
|
21KB
|
687 lines
/*
** $VER: gtlayout.h 45.1 (3.7.98)
** GadTools layout toolkit
**
** Copyright © 1993-1998 by Olaf `Olsen' Barthel
** Freely distributable.
*/
#ifndef _GTLAYOUT_H
#define _GTLAYOUT_H
/*****************************************************************************/
#ifndef INTUITION_GADGETCLASS_H
#include <intuition/gadgetclass.h>
#endif /* !INTUITION_GADGETCLASS_H */
#ifndef LIBRARIES_GADTOOLS_H
#include <libraries/gadtools.h>
#endif /* !LIBRARIES_GADTOOLS_H */
/*****************************************************************************/
/* Kinds of objects supported in addition to the normal GadTools kinds */
#define HORIZONTAL_KIND 45
#define VERTICAL_KIND 46
#define END_KIND 47
#define FRAME_KIND 48
#define BOX_KIND 49
#define FRACTION_KIND 50
#define XBAR_KIND 51
#define YBAR_KIND 52
#define PASSWORD_KIND 53
#define GAUGE_KIND 54
#define TAPEDECK_KIND 55
#define LEVEL_KIND 56
#define BOOPSI_KIND 57
#define POPUP_KIND 58
#define TAB_KIND 59
#define BLANK_KIND 60
#define IMAGE_KIND 61
/*****************************************************************************/
/* Where to place a gadget label */
enum
{
PLACE_Left,
PLACE_Right,
PLACE_Above,
PLACE_In,
PLACE_Below
};
/* How to align text lines in BOX_KIND gadgets */
enum
{
ALIGNTEXT_Left,
ALIGNTEXT_Centered,
ALIGNTEXT_Right,
ALIGNTEXT_Pad
};
/* The button images available for TAPEDECK_KIND gadgets. */
enum
{
TDBT_Backward,
TDBT_Forward,
TDBT_Previous,
TDBT_Next,
TDBT_Stop,
TDBT_Pause,
TDBT_Record,
TDBT_Rewind,
TDBT_Eject,
TDBT_Play,
TDBTLAST
};
/* The frame types for groups. */
enum
{
FRAMETYPE_None,
FRAMETYPE_Label,
FRAMETYPE_Tab
};
/* How to align the window opened by LT_Build() on the screen. */
#define ALIGNF_Right (1 << 0)
#define ALIGNF_Left (1 << 1)
#define ALIGNF_Top (1 << 2)
#define ALIGNF_Bottom (1 << 3)
#define ALIGNF_ExtraRight (1 << 4)
#define ALIGNF_ExtraLeft (1 << 5)
#define ALIGNF_ExtraTop (1 << 6)
#define ALIGNF_ExtraBottom (1 << 7)
/*****************************************************************************/
/* Generic tags, applicable for several object types */
#define LA_Chars TAG_USER+2
#define LA_LabelPlace TAG_USER+3
#define LA_ExtraSpace TAG_USER+4
#define LA_NoKey TAG_USER+30
#define LA_HighLabel TAG_USER+31
#define LA_LabelText TAG_USER+37
#define LA_LabelID TAG_USER+38
#define LA_ID TAG_USER+39
#define LA_Type TAG_USER+40
#define LA_PageSelector TAG_USER+79
#define LA_LabelChars TAG_USER+107
#define LA_DefaultSize TAG_USER+170
#define LA_LayoutSpace TAG_USER+189
/* Storage type tags */
#define LA_BYTE TAG_USER+63
#define LA_UBYTE TAG_USER+64
#define LA_WORD TAG_USER+65
#define LA_BOOL TAG_USER+65
#define LA_UWORD TAG_USER+66
#define LA_LONG TAG_USER+67
#define LA_ULONG TAG_USER+68
#define LA_STRPTR TAG_USER+69
/* for use with LT_GetAttributes() only */
#define LA_Left TAG_USER+16
#define LA_Top TAG_USER+17
#define LA_Width TAG_USER+18
#define LA_Height TAG_USER+19
#define LA_LabelLeft TAG_USER+114
#define LA_LabelTop TAG_USER+115
/* BOOPSI_KIND */
#define LABO_TagCurrent TAG_USER+119
#define LABO_TagTextAttr TAG_USER+120
#define LABO_TagDrawInfo TAG_USER+121
#define LABO_TagLink TAG_USER+129
#define LABO_TagScreen TAG_USER+132
#define LABO_Link LALV_Link
#define LABO_ClassInstance TAG_USER+122
#define LABO_ClassName TAG_USER+123
#define LABO_ClassLibraryName TAG_USER+124
#define LABO_ExactWidth TAG_USER+127
#define LABO_ExactHeight TAG_USER+128
#define LABO_RelFontHeight TAG_USER+131
#define LABO_Object TAG_USER+133
#define LABO_FullWidth TAG_USER+135
#define LABO_FullHeight TAG_USER+136
#define LABO_ActivateHook TAG_USER+141
/* BOX_KIND */
#define LABX_Labels TAG_USER+12
#define LABX_Lines TAG_USER+13
#define LABX_Chars TAG_USER+2
#define LABX_Rows TAG_USER+1
#define LABX_Index TAG_USER+14
#define LABX_Text TAG_USER+15
#define LABX_AlignText TAG_USER+27
#define LABX_DrawBox TAG_USER+11
#define LABX_FirstLabel TAG_USER+44
#define LABX_LastLabel TAG_USER+45
#define LABX_ReserveSpace TAG_USER+72
#define LABX_LabelTable TAG_USER+98
#define LABX_FirstLine TAG_USER+152
#define LABX_LastLine TAG_USER+153
#define LABX_LineTable TAG_USER+156
#define LABX_Line TAG_USER+161
#define LABX_LineID TAG_USER+162
#define LABX_TextPen TAG_USER+172
#define LABX_BackPen TAG_USER+173
#define LABX_Spacing TAG_USER+180
/* BUTTON_KIND */
#define LABT_ReturnKey TAG_USER+34
#define LABT_DefaultButton TAG_USER+34
#define LABT_EscKey TAG_USER+56
#define LABT_ExtraFat TAG_USER+29
#define LABT_Lines TAG_USER+140
#define LABT_FirstLine TAG_USER+44
#define LABT_LastLine TAG_USER+45
#define LABT_DefaultCorrection TAG_USER+145
#define LABT_Smaller TAG_USER+147
/* CYCLE_KIND */
#define LACY_FirstLabel TAG_USER+44
#define LACY_LastLabel TAG_USER+45
#define LACY_LabelTable TAG_USER+98
#define LACY_AutoPageID TAG_USER+103
#define LACY_TabKey TAG_USER+118
/* FRACTION_KIND */
#define LAFR_IncrementerHook TAG_USER+85
/* FRAME_KIND */
#define LAFR_InnerWidth TAG_USER+9
#define LAFR_InnerHeight TAG_USER+10
#define LAFR_DrawBox TAG_USER+11
#define LAFR_RefreshHook TAG_USER+117
#define LAFR_GenerateEvents TAG_USER+155
#define LAFR_ResizeX LALV_ResizeX
#define LAFR_ResizeY LALV_ResizeY
/* GAUGE_KIND */
#define LAGA_Percent TAG_USER+36
#define LAGA_InfoLength TAG_USER+70
#define LAGA_InfoText TAG_USER+71
#define LAGA_NoTicks TAG_USER+143
#define LAGA_Discrete TAG_USER+144
#define LAGA_Tenth TAG_USER+144
/* IMAGE_KIND */
#define LAIM_Image TAG_USER+181
#define LAIM_BitMap TAG_USER+182
#define LAIM_BitMapLeft TAG_USER+183
#define LAIM_BitMapTop TAG_USER+184
#define LAIM_BitMapWidth TAG_USER+185
#define LAIM_BitMapHeight TAG_USER+186
#define LAIM_BitMapMask TAG_USER+187
/* INTEGER_KIND */
#define LAIN_LastGadget TAG_USER+28
#define LAIN_Min TAG_USER+23
#define LAIN_Max TAG_USER+24
#define LAIN_UseIncrementers TAG_USER+57
#define LAIN_Incrementers TAG_USER+57
#define LAIN_HistoryLines TAG_USER+59
#define LAIN_HistoryHook TAG_USER+80
#define LAIN_IncrementerHook TAG_USER+85
#define LAIN_Activate TAG_USER+148
/* LISTVIEW_KIND */
#define LALV_ExtraLabels TAG_USER+26
#define LALV_Labels TAG_USER+33
#define LALV_CursorKey TAG_USER+35
#define LALV_Columns TAG_USER+2
#define LALV_Lines TAG_USER+1
#define LALV_Link TAG_USER+7
#define LALV_FirstLabel TAG_USER+44
#define LALV_LastLabel TAG_USER+45
#define LALV_MaxGrowX TAG_USER+77
#define LALV_MaxGrowY TAG_USER+78
#define LALV_LabelTable TAG_USER+98
#define LALV_LockSize TAG_USER+106
#define LALV_ResizeX TAG_USER+109
#define LALV_ResizeY TAG_USER+110
#define LALV_MinChars TAG_USER+111
#define LALV_MinLines TAG_USER+112
#define LALV_FlushLabelLeft TAG_USER+113
#define LALV_TextAttr TAG_USER+138
#define LALV_AutoPageID TAG_USER+103
#define LALV_Selected TAG_USER+167
#define LALV_AdjustForString TAG_USER+174
/* LEVEL_KIND */
#define LAVL_Min GTSL_Min
#define LAVL_Max GTSL_Max
#define LAVL_Level GTSL_Level
#define LAVL_LevelFormat GTSL_LevelFormat
#define LAVL_LevelPlace GTSL_LevelPlace
#define LAVL_DispFunc GTSL_DispFunc
#define LAVL_FullCheck LASL_FullCheck
#define LAVL_Freedom TAG_USER+177 /* (I) New in V41 */
#define LAVL_Ticks TAG_USER+178 /* (I) New in V41 */
#define LAVL_NumTicks TAG_USER+179 /* (IS) New in V41 */
#define LAVL_Lines TAG_USER+1
/* MX_KIND */
#define LAMX_FirstLabel TAG_USER+44
#define LAMX_LastLabel TAG_USER+45
#define LAMX_LabelTable TAG_USER+98
#define LAMX_TabKey TAG_USER+118
#define LAMX_AutoPageID TAG_USER+103
/* PALETTE_KIND */
#define LAPA_SmallPalette TAG_USER+32
#define LAPA_Lines TAG_USER+1
#define LAPA_UsePicker TAG_USER+137
#define LAPA_Picker TAG_USER+137
/* PASSWORD_KIND */
#define LAPW_String GTST_String
#define LAPW_LastGadget TAG_USER+28
#define LAPW_HistoryLines TAG_USER+59
#define LAPW_HistoryHook TAG_USER+80
#define LAPW_Activate TAG_USER+148
#define LAPW_MaxChars GTST_MaxChars
/* POPUP_KIND */
#define LAPU_FirstLabel TAG_USER+44
#define LAPU_LastLabel TAG_USER+45
#define LAPU_LabelTable TAG_USER+98
#define LAPU_AutoPageID TAG_USER+103
#define LAPU_TabKey TAG_USER+118
#define LAPU_Labels GTCY_Labels
#define